package cn.kinoko.controller.manga;

import cn.kinoko.common.base.model.BaseController;
import cn.kinoko.service.manga.MangaAIService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kinoko
 */
@RestController
@RequestMapping("/manga/ai")
public class MangaAIController extends BaseController {

    @Resource
    private MangaAIService mangaAiService;

    @GetMapping("/ocrMark")
    public Object ocrMark(@RequestParam Long pageId) {
        return success(mangaAiService.ocrMark(pageId));
    }

    @GetMapping("/ocrCheck")
    public Object ocrCheck(@RequestParam Long pageId) {
        return success(mangaAiService.ocrCheck(pageId));
    }

}